package cn.stylefeng.guns.modular.basic.service;

import cn.stylefeng.guns.base.pojo.node.ZTreeNode;
import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.BasicType;
import cn.stylefeng.guns.modular.basic.model.params.BasicCodeParam;
import cn.stylefeng.guns.modular.basic.model.params.BasicTypeParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicCodeResult;
import cn.stylefeng.guns.modular.basic.model.result.BasicTypeResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 通用编码 服务类
 * </p>
 *
 * @author 
 * @since 2024-01-05
 */
public interface BasicTypeService extends IService<BasicType> {

    /**
     * 新增
     *
     * @author 
     * @Date 2024-01-05
     */
    void add(BasicTypeParam param);

    /**
     * 删除
     *
     * @author 
     * @Date 2024-01-05
     */
    void delete(BasicTypeParam param);

    /**
     * 更新
     *
     * @author 
     * @Date 2024-01-05
     */
    void update(BasicTypeParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author 
     * @Date 2024-01-05
     */
    BasicTypeResult findBySpec(BasicTypeParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author 
     * @Date 2024-01-05
     */
    List<BasicTypeResult> findListBySpec(BasicTypeParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author 
     * @Date 2024-01-05
     */
     LayuiPageInfo findPageBySpec(BasicTypeParam param,String condition);

    List<ZTreeNode> tree(BasicTypeParam basicTypeParam);

    List<BasicTypeResult> likePids(Integer id);


}
